<script lang="ts" setup>

import zhCN from "ant-design-vue/es/locale/zh_CN"; //引入antd中文包
import moment from "moment";
import { ref } from "vue";
import router from "@/router/router.ts";
//引入moment
moment.locale("zh-cn");//配置moment中文环境
const data = ref({
    locale: zhCN,
    date: moment(),
});
</script>

<template>
    <div>
        <a-config-provider :locale="data.locale">
            <router-view :key="router.currentRoute.value.params"></router-view>
        </a-config-provider>
    </div>
</template>

<style scoped>
html, body, #app {
    margin: 0;
    padding: 0;
    height: 100%;

}

</style>
